package demo.hardware;

import demo.software.ISoftwareVisitor;

/**
 * 硬件接口
 * @author ZhouWeiBo
 * @create 2022/6/8
 */
public abstract class AbstractHardware {
    public String command;

    public AbstractHardware(String command) {
        this.command = command;
    }

    public void run(){
        System.out.println(command);
    }

    public abstract void accept(ISoftwareVisitor visitor);
}
